#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
int god, z;
cout<<"Vvedite god \n";
cin>>god;

if (god%60>=4 and god%60<16) cout<<"Eto god zeleno";
if (god%60>=16 and god%60<28) cout<<"Eto god krasno";
if (god%60>=28 and god%60<40) cout<<"Eto god zhelto";
if (god%60>=40 and god%60<52) cout<<"Eto god belo";
if (god%60>=52 or god%60<4) cout<<"Eto god cherno";

z=((god%60)%12);

switch (z)
{
case 4: cout<<"i krisi"; break;
case 5: cout<<"i korovi"; break;
case 6: cout<<"go tigra"; break;
case 7: cout<<"go zaitsa"; break;
case 8: cout<<"go drakona"; break;
case 9: cout<<"i zmei"; break;
case 10: cout<<"i loshadi"; break;
case 11: cout<<"i ovtsi"; break;
case 0: cout<<"i obeziani"; break;
case 1: cout<<"i kuritsi"; break;
case 2: cout<<"i sobaki"; break;
case 3: cout<<"i svinii"; break;
}
    QCoreApplication a(argc, argv);

    return a.exec();
}
